package sw.EngAdroid;

import junit.framework.TestCase;

import org.junit.Test;

public class GameTest extends TestCase{

	@Test
	public void testAddPlayer() {		
		Game g = new Game("frank", 3);
		Player p1 = new Player("Spencer");
		Player p2 = new Player("Brett");
		Player p3 = new Player("Enzo");
		Player p4 = new Player("Scott");

		p1.joinGame(g);
		p2.joinGame(g);
		p3.joinGame(g);
		p4.joinGame(g);

		//assertEquals(3, g.players.size());
		
		//g.players.remove(0);
		
		//assertEquals(2, g.players.size());		
	}
	
	@Test
	public void testReceiveGuess() {
		Game g = new Game("Frank", 3);
		Player p1 = new Player("Spencer");
		Player p2 = new Player("Scott");
		Player p3 = new Player("Enzo");
		Player p4 = new Player("Eric");
		
		String s1 = p1.joinGame(g);
		String s2 = p2.joinGame(g);
		String s3 = p3.joinGame(g);
		String s4 = p4.joinGame(g);
		
		p1.submitGuess(54);
		p2.submitGuess(83);
		p3.submitGuess(90);
		
		//assertEquals(3, g.get_Guesses().size());
	}
	/*
	@Test
	public void testReceiveBet() {
		Bet b = new Bet();
		ArrayList<Bet> bets = new ArrayList<Bet>();
		
		bets.add(b);
		bets.add(b);
		bets.add(b);
		bets.add(b);
		bets.add(b);
		bets.add(b);
		bets.add(b);
		
		assertEquals(7, bets.size());
		
		bets.clear();
		
		assertTrue(bets.isEmpty());
		
		bets.add(b);
		
		assertTrue(!bets.isEmpty());
	}
	
//	@Test
//	public void testWinnings() {
//		fail("Not yet implemented");
//	}
	*/
}